package ooday01;

public class StudentTest {
    public static void main(String[] args) {
        Student student1=new Student();
        student1.name="小明";
        student1.stuId=001;
        student1.className="一班";
        student1.age=18;
        Student student2=new Student("小红",17,"二班",002);
        student1.study();
        student1.sayHi();
        student1.playWith(student2.name);
        student2.study();
        student2.sayHi();
        student2.playWith(student1.name);
    }
}
